package controllers

import "read.com/admin/models"

type PeriodController struct {
	BaseController
}

func (self *PeriodController) List(){
	self.Data["pageTitle"] = "时段统计"
	self.display()
}

func (self *PeriodController) Table(){
	start := self.GetString("start")
	end := self.GetString("end")
	err,result := models.GetLoginCountPayCount(start,end)
	if err != nil {
		self.ajaxList("失败",MSG_ERR,0,0)
	}else {
		self.ajaxList("成功",MSG_OK,0,result)
	}
}
